import { createApp } from 'vue'
import store from './store'
import "./assets/css/global.css"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import axios from "axios"
import VueAxios from 'vue-axios'
import * as ELIcons from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'

// axios.defaults.baseURL = 'http://1ocalhost:8081/api/'
const app=createApp(App)
for (let iconName in ELIcons) {
    app.component(iconName, ELIcons[iconName])
}
app.use(store).use(router).use(ElementPlus).use(ElementPlus, {
    locale: zhCn,}).use(VueAxios, axios).mount('#app')
